home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / Abalone 1.4.2 / src / Define.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-09-21  |  2.8 KB  |  75 lines  |  [TEXT/MPS ]

  1. /* Defines to be used by the C compiler and the resource compiler */
  2.  
  3.  
  4. #define kMinSize                300                        /* application's minimum size (in K) */
  5. #define kPrefSize                750                        /* application's preferred size (in K) */
  6.  
  7. #define    rMenuBar                128                        /* application's menu bar */
  8. #define    rAboutAlert                128                        /* about alert */
  9. #define rAboutLegalitiesAlert    129
  10. #define rAboutRulesAlert        130
  11. #define rAboutMeAlert            131
  12. #define rAboutPlayingAlert        132
  13. #define rAboutStrategiesAlert    133
  14. #define    rUserAlert                129                        /* error user alert */
  15. #define    rWindow                    128                        /* application's window */
  16. #define rPPCStrings                200
  17. #define rBackgroundSelect        203
  18. #define rBackgroundSelectPict    204
  19. #define rConnection                400
  20.  
  21. /* kOSEvent is the event number of the suspend/resume and mouse-moved events sent
  22.    by MultiFinder. Once we determine that an event is an osEvent, we look at the
  23.    high byte of the message sent to determine which kind it is. To differentiate
  24.    suspend and resume events we check the resumeMask bit. */
  25.  
  26. #define    kOSEvent                app4Evt    /* event used by MultiFinder */
  27. #define    kSuspendResumeMessage    1        /* high byte of suspend/resume event message */
  28. #define    kResumeMask                1        /* bit of message field for resume vs. suspend */
  29. #define    kMouseMovedMessage        0xFA    /* high byte of mouse-moved event message */
  30.    
  31.    
  32.  
  33. /*    This is the minimum result from the following equation:
  34.         
  35.         ORD(GetApplLimit) - ORD(ApplicZone)
  36.         
  37.     for the application to run. It will insure that enough memory will
  38.     be around for reasonable-sized scraps, FKEYs, etc. to exist with the
  39.     application, and still give the application some 'breathing room'.
  40.     To derive this number, we ran under a MultiFinder partition that was
  41.     our requested minimum size, as given in the 'SIZE' resource. */
  42.      
  43. #define kMinHeap                (200L * 1024)
  44.  
  45. /*    For this application, we may need a large stack. */
  46.  
  47. #define kPrefStack                (64L * 1024)
  48.     
  49. /*    1.01 - kMinSpace - This is the minimum result from PurgeSpace, when called
  50.     at initialization time, for the application to run. This number acts
  51.     as a double-check to insure that there really is enough memory for the
  52.     application to run, including what has been taken up already by
  53.     pre-loaded resources, the scrap, code, and other sundry memory blocks. */
  54.      
  55. #define kMinSpace                (100 * 1024)
  56.  
  57. /* kExtremeNeg and kExtremePos are used to set up wide open rectangles and regions. */
  58.  
  59. #define kExtremeNeg                -32768
  60. #define kExtremePos                (32767 - 1) /* required to address an old region bug */
  61.  
  62. #if defined(__MWERKS__)
  63. #define Main    __%Main
  64. #endif
  65.  
  66. //    Field sizes known to give a nice picture and corresponding window sizes.
  67.  
  68. #define kHorLarge                54
  69. #define kHorSmall                38
  70. #define kVerLarge                47
  71. #define kVerSmall                33
  72. #define kHorTotal                (9 * gSet.FieldWidth  + 2)
  73. #define kVerTotal                (9 * gSet.FieldHeight + 1)                
  74.  
  75.